import request from '@/router/axios';

/**
 * @param current 当前页
 * @param size 每页数据量
 * @returns {AxiosPromise}
 */
export const getParentList = (current, size,params) => {
  return request({
    url: '/api/hg-logistics/labellog/label-log/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}


export const getChildList = (current, size, logId) => {
  return request({
    url: '/api/hg-logistics/labellog/label/page',
    method: 'get',
    params: {
      logId,
      current,
      size,
    }
  })
}
export const getDetailList = (current, size, boxNo, params) => {
  return request({
    url: '/api/hg-logistics/box/count/list-sku-detail',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      boxNo,
    }
  })
}


export const getMaterialList = (current,size,data) => {
  return request({
    url: '/api/hg-public/material/info/page',
    method: 'get',
    params: {
      ...data,
      current,
      size,
    }
  })
}

export const getCustomerList = () => {
  return request({
    url: '/api/hg-public/customerlinkman/selectCustomer',
    method: 'get',
  })
}
